home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Windows 95 with MFC
/
Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso
/
CODE
/
Chap13
/
GridDemo
/
GridDemo.rc
< prev
next >
Wrap
Text File
|
1996-04-05
|
2KB
|
51 lines
//***********************************************************************
//
// GridDemo.rc
//
//***********************************************************************
#include <afxres.h>
#include "Resource.h"
IDR_MAINFRAME MENU
BEGIN
POPUP "&Options" {
MENUITEM "Grid &Settings...", IDM_OPTIONS_SETTINGS
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_OPTIONS_EXIT
}
END
IDD_SETTINGSDLG DIALOG 0, 0, 196, 130
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE |
WS_CAPTION | WS_SYSMENU
CAPTION "Settings"
FONT 8, "MS Sans Serif"
BEGIN
GROUPBOX "Line Weight", -1, 8, 8, 124, 52, WS_GROUP
CONTROL "", IDC_SLIDER, "MSCTLS_TRACKBAR32",
TBS_AUTOTICKS | WS_TABSTOP, 20, 24, 100, 20
LTEXT "Darkest", -1, 16, 44, 30, 8
LTEXT "Lightest", -1, 100, 44, 30, 8
GROUPBOX "Grid Spacing", -1, 8, 68, 124, 52
LTEXT "&Horizontal", -1, 20, 84, 32, 8
EDITTEXT IDC_EDITHORZ, 60, 80, 40, 14, ES_AUTOHSCROLL
CONTROL "", IDC_SPINHORZ, "MSCTLS_UPDOWN32", UDS_ARROWKEYS |
UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT,
0, 0, 0, 0
LTEXT "&Vertical", -1, 20, 104, 36, 8
EDITTEXT IDC_EDITVERT, 60, 100, 40, 14, ES_AUTOHSCROLL
CONTROL "", IDC_SPINVERT, "MSCTLS_UPDOWN32", UDS_ARROWKEYS |
UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT,
0, 0, 0, 0
DEFPUSHBUTTON "OK", IDOK, 140, 12, 50, 14, WS_GROUP
PUSHBUTTON "Cancel" ,IDCANCEL, 140, 30, 50, 14, WS_GROUP
END
STRINGTABLE
BEGIN
IDS_SLIDER "Controls grid line visibility"
IDS_EDITHORZ "Sets the number of columns in the grid"
IDS_EDITVERT "Sets the number of rows in the grid"
END